﻿/****************************** Module Header ******************************\
* Module Name:	NativeMethod.cs
* Project:		CSDllCOMServer
* Copyright (c) Microsoft Corporation.
* 
* The P/Invoke signatures of some native APIs.
* 
* This source is subject to the Microsoft Public License.
* See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
* All other rights reserved.
* 
* History:
* * 1/21/2009 11:04 PM Jialiang Ge Created
\***************************************************************************/

#region Using directives
using System;
using System.Runtime.InteropServices;
using System.Text;
#endregion


namespace CSDllCOMServer
{
    /// <summary>
    /// Native method
    /// </summary>
    public class NativeMethod
    {
        /// <summary>
        /// Get current thread ID.
        /// </summary>
        /// <returns></returns>
        [DllImport("kernel32.dll")]
        public static extern uint GetCurrentThreadId();

        /// <summary>
        /// Get current process ID.
        /// </summary>
        [DllImport("kernel32.dll")]
        public static extern uint GetCurrentProcessId();

    } // class NativeMethod
} // namespace CSDllCOMServer
